package com.lc;

import com.lc.bean.FieldInfo;
import com.lc.bean.TableInfo;
import com.lc.builder.*;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;


import java.io.IOException;
import java.util.List;

/**
 * 功能：主程序
 * 作者：lc
 * 日期：2024/6/10 21:49
 */
@SpringBootApplication
public class RunApplication {
    public static void main(String[] args) throws IOException {
        SpringApplication.run(RunApplication.class, args);
        List<TableInfo> tableInfos = BuildTable.getTables();
        BuildBase.execute();
        for (TableInfo tableInfo :
                tableInfos) {
            BuildPo.execute(tableInfo);
            BuildQuery.execute(tableInfo);
            BuildMapper.execute(tableInfo);
            BuildMapperXml.execute(tableInfo);
            BuildService.execute(tableInfo);
            BuildServiceImpl.execute(tableInfo);
            BuildController.execute(tableInfo);
        }
    }
}
